<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href = '${pageContext.request.contextPath }/css/main.css'>
</head>
<body>
	<%
		request.setCharacterEncoding("utf-8");			// 한글이 깨지지 않도록. 
		
		String inc = request.getParameter("inc");		// 본문화면이 나올 부분을 설정한다.
		if(inc==null){	
			inc = "main_contents.jsp";						// 본문에 기본으로 나올 화면 
		}
		
		String left_menu = request.getParameter("left_menu");	// 왼쪽메뉴화면이 나올 부분을 설정한다.
		if(left_menu==null){	
			left_menu = "left_menu.jsp";						// 왼쪽메뉴화면이 나올 부분을 설정한다.  
		}
		
	%>
<!-- 레이아웃 -->	
<!-- 0. wrap으로 전체 감싼다.-->
<!-- 1. 상단 메뉴 -->
<div id = 'wrap'>
<div id	= 'header'>
	<div id="head_first">
		<div id="logo"><img src = '../images/logo2.png'></div>		
		<div id="head_menu1"><%@include file="head_menu1.jsp" %></div>
	</div>
	<div id="head_second">
		<div id="head_menu2"><%@include file="head_menu2.jsp" %></div>
		<div id="head_search" >
			<img src = '../images/google.png'><input type="text" size="20"/>
			<input type="image" src="../images/icon_search.png" value="검색"/>
		</div>		
	</div>	
	<div id="head_third"><%@include file="head_menu3.jsp" %></div>
</div>	

<!-- 2. 왼쪽 메뉴와, 중앙 내용-->
<div id='center' >
	<div id = 'left' style= "margin-right: 20px;">
		<div id = 'myinfo' align="center">
			<%@include file = "myinfo.jsp"%></div>
		<div id = 'left_menu'>
			<jsp:include page="<%=left_menu%>"/></div>
	</div>
	<div id='contents'><jsp:include page="<%=inc%>"/></div>
</div>	

<!-- 3. 하단 회사 소개  -->
<div id='footer'>
		<div id="foot_menu1"></div>
		<div id="foot_ad1">
			<div align="center">
				<a href="main.jsp"><input type="image" src="../images/menu_bottom_1.png" style="margin-right: 10px;"/></a>
				<a href=""><input type="image" src="../images/menu_bottom_2.png" style="margin-right: 10px;"/></a>
				<a href="main.jsp?inc=../board/list_FreeBoard.jsp?category=1&left_menu=../board/board_menu.jsp"><input type="image" src="../images/menu_bottom_3.png" style="margin-right: 10px;"/></a>
				<a href="main.jsp?inc=../board/list_FreeBoard.jsp?category=2&left_menu=../board/board_menu.jsp"><input type="image" src="../images/menu_bottom_4.png" style="margin-right: 10px;"/></a>
				<a href="main.jsp?inc=../mail/mail_contents.jsp&left_menu=../mail/mail_menu.jsp"><input type="image" src="../images/menu_bottom_5.png" style="margin-right: 10px;"/></a>
				<a href="main.jsp?inc=../file/file_total_contents.jsp&left_menu=../file/file_menu.jsp"><input type="image" src="../images/menu_bottom_6.png" style="margin-right: 10px;"/></a>
				<a href="main.jsp?inc=../board/board_contents.jsp&left_menu=../board/board_menu.jsp"><input type="image" src="../images/menu_bottom_7.png" style="margin-right: 10px;"/></a>
				<a href=""><input type="image" src="../images/menu_bottom_8.png" style="margin-right: 10px;"/></a>
			</div>
		</div>
						
</div>
</div>


</body>
</html>